package com.blrs.system.domain;

import com.blrs.common.annotation.Excel;
import com.blrs.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【指定数据权限】对象 sys_user_data_view
 * 
 * @author yuxiang.chen
 * @date 2023-07-14
 */
public class SysUserDataView extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long roleId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 查看指定用户数据id */
    @Excel(name = "查看指定用户数据id")
    private Long viewUserId;

    private String userName;

    private Long[] viewUserIds;

    public Long[] getViewUserIds() {
        return viewUserIds;
    }

    public void setViewUserIds(Long[] viewUserIds) {
        this.viewUserIds = viewUserIds;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setViewUserId(Long viewUserId) 
    {
        this.viewUserId = viewUserId;
    }

    public Long getViewUserId() 
    {
        return viewUserId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roleId", getRoleId())
            .append("userId", getUserId())
            .append("viewUserId", getViewUserId())
            .toString();
    }
}
